package cn.ilikes.apps.collect.tests.others;

import cn.ilikes.apps.collect.pojos.IlikesUsers;
import cn.ilikes.apps.collect.services.IlikesCollectsService;
import cn.ilikes.apps.collect.services.IlikesUserService;
import cn.ilikes.apps.collect.tests.BaseTest;

public class TESTClient extends BaseTest {

	public void testThread() {
		for (int i = 0; i <1; i++) {
			IlikesUserService iikesUserService = getService(IlikesUserService.SPRING_DEFULT_NAME);
			IlikesUsers likesUsers = new IlikesUsers();
			likesUsers.setRegName("电视应用平台部门" + System.currentTimeMillis() + Math.random());
			likesUsers.setRegPasswd("电视应用平台部门" + System.currentTimeMillis());

			try {
				iikesUserService.regUser(likesUsers);
				System.out.println("===================================" + likesUsers.getRegName());

			} catch (Exception e) {
				System.out.println("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
				e.printStackTrace();
				//				System.exit(0);
			}
		}
		
//		IlikesCollectsService iikesUserService = getService(IlikesCollectsService.SPRING_DEFULT_NAME);
	
		
	}

}
